package cc.zy.base.hr.entity;

import cc.zy.base.common.converter.TimeConverter;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.wuwenze.poi.annotation.Excel;
import com.wuwenze.poi.annotation.ExcelField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 2 * @Author: Junjie
 * 3 * @Date: 2022/3/8 19:04
 * 4
 */
@Data
@TableName("t_hr_score_mapping")
@Excel("积分换算规则")
public class ScoreMapping {
    /**
     *
     */
    @TableId(value = "ID")
    private Integer id;

    /**
     *
     */
    @TableField("TYPE")
    private  Integer type;

    /**
     *
     */
    @TableField("MAX_VALUE")
    private BigDecimal maxValue;

    /**
     *
     */
    @TableField("MIN_VALUE")
    private BigDecimal minValue;

    /**
     *
     */
    @TableField("INTEGRAL_VALUE")
    private BigDecimal integralValue;

    /**
     *
     */
    @TableField("CREATE_DATE")
    @ExcelField(value = "创建时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date createDate;

    /**
     *
     */
    @TableField("CREATE_USER_ID")
    private Long createUserId;

    /**
     *
     */
    @TableField("LAST_MODIFY_DATE")
    @ExcelField(value = "更新时间", writeConverter = TimeConverter.class)
    @JsonFormat(pattern = "yyyy年MM月dd日 HH时mm分ss秒", timezone = "CTT")
    private Date lastModifyDate;

    /**
     *
     */
    @TableField("LAST_MODIFY_USER_ID")
    private Long lastModifyUserId;

    @ExcelField(value = "创建人")
    @TableField(exist = false)
    private String userName;

    /**
     * 更新人名称
     */
    @ExcelField(value = "更新人")
    @TableField(exist = false)
    private String updateUserName;
    /**
     *
     */

    /**
     *
     */
    @TableField("REMARK")
    private String remark;
}
